package com.borderbears.backend.connection;

import javax.swing.tree.TreeModel;

import nanoxml.XMLElement;

public abstract class Connection {

	private String name;

	public Connection(final String n) {
		setName(n);
	}

	public void setName(final String n) {
		name = n;
	}

	public String getName() {
		return name;
	}

	public abstract TreeModel getTreeModel();

	public abstract void reload();

	public abstract XMLElement serialize();

	public abstract void deserialize(XMLElement xml);

	@Override
	public String toString() {
		return name;
	}

}
